package com.qtenv.datasync.service.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qtenv.datasync.service.entity.Terminals_bf;
import com.qtenv.datasync.service.entity.TerminalsXb;

import java.util.List;

/**
 * <p>
 * 大表档案表 服务类
 * </p>
 *
 * @author CBL
 * @since 2022-08-02
 */
public interface TerminalsService extends IService<Terminals_bf> {
    void saveToMiddle(List<Terminals_bf> terminalsList);

    List<Terminals_bf> findMidTerminalsByTenantAndSupplier(String tenant, Integer supplier);

    List<Terminals_bf> findMasTerminalsByTenantAndSupplier(String tenant, Integer supplier);

    List<Terminals_bf> findMasTerminalsByTenantAndSupplier_new(String tenant, Integer supplier);

    List<Terminals_bf> findMasTerminalsByTenantAndSupplierAndLastTime(String tenant, Integer supplier);

    List<Terminals_bf> getTerminals(String tenantId);

    Terminals_bf getTerminalBasicInfo(String tenantId, String terminalId);

    Page<TerminalsXb> getAllTerminalDataList(String tenantId, String terminalName, String terminalInstallAddr, String page, String pageSize);
}
